<?php

namespace Yolo\Logs;

use Yolo\Di\Annotations\Singleton;

/**
 * Log factory
 * @method void debug(array $log)
 * @method void info(array $log)
 * @method void warn(array $log)
 * @method void error(array $log)
 */
#[Singleton]
class Log
{
    public function __construct(
        private readonly LogInterface $logger
    ){}

    public function __call($name, $arguments)
    {
        return $this->logger->$name(...$arguments);
    }
}
